父組件調用子組件 viewChild 父組件調用子組件 1.在子組件的ts中聲明一個變量 public lineout:any="你好,我是被父組件調用的子組件"; 2.在父組件的html中寫入 (引入子組 ...